#include <math.h>

#ifndef PI
#	define PI	3.1415926535897932384626433832795
#endif

#ifndef PI_ON_180
#	define PI_ON_180	(PI/180.0)
#endif

#define fmRound(dTemp) (long(dTemp+(dTemp>0? .5:-.5)))
#define fmRoundf(dTemp) (float(dTemp+(dTemp>0? .5f:-.5f)))

#define FoggeDegToRad(deg) (deg*PI/180)
#define FoggeRadToDeg(rad) (rad*180/PI)

#define FoGGESetBit(flag,index)\
	{\
		flag|=1<<(index);\
	}
#define FoGGEResetBit(flag,index)\
	{\
		flag&=~(1<<(index));\
	}
#define FoGGEReadBit(flag,index) (((flag)&1<<(index))!=0)


#include "Vector.h"
#include "Matrix.h"
#include "Quaternion.h"
#include "Rotator.h"


namespace _FOMATH=::_FOGGE_::_UTIL_::_MATH_;